<template>
  <div id="explain">
    <div>{{title}}</div>
    <input type="text" v-model="content">{{content}} - {{webname}}
  </div>
</template>

<script>
export default {
  props:['title','modelValue'],
  emits:['update:modelValue'],
  inject:['webname'],
  data() {
    return {
      content: this.modelValue
    }
  },
  watch:{
    content(value){
      this.$emit('update:modelValue',value)
    }
  }

}
</script>

<style scoped>
#explain{
  display: flex;
  align-items: center;
  font-size: 16px;
}
#explain input{
  margin-left: 10px;
  outline: none;
  color:#666;
}
</style>